using System;
using System.Collections.Generic;
using System.Text;
using DAOLayer;
using System.Data.SqlClient;

namespace BUSLayer
{
    public class AbstractBus
    {
        public bool KetNoi(string ServerIP, string Database, string LoginName, string Password)
        {
            AbstractDao cnnDao = new AbstractDao();
            try
            {
                cnnDao.GetConnection(ServerIP, Database, LoginName, Password);
                SqlConnection cn = cnnDao.SqlConnectiondata();
                cn.Open();
                cn.Close();
            }
            catch (Exception ex)
            {
                return false;
            }
            return true;
        }

    }
}
